package common.files.xml.xsd;

import java.util.LinkedHashSet;

public class TreeNode {
	private String name;
	private TreeNode parent;
	private LinkedHashSet <TreeNode> children;
	
	public TreeNode(){
		children = new LinkedHashSet <TreeNode>();
	}
	public TreeNode(String name){
		this();
		this.setName(name);
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public TreeNode getParent() {
		return parent;
	}
	public void setParent(TreeNode parent) {
		this.parent = parent;
	}
	public LinkedHashSet<TreeNode> getChildren() {
		return children;
	}
	public void setChildren(LinkedHashSet<TreeNode> children) {
		this.children = children;
	}
	public void addChild(TreeNode child){
		this.children.add(child);
	}
	
	
	
}
